package com.homework.work02;

import java.util.Scanner;

public class Work02_05 {
    public static void main(String[] args) {
        int temp = 0;
        boolean loop = true;
        Scanner scanner = new Scanner(System.in);
        do {
            System.out.println("输入一个3位数的正整数：");
            int i = scanner.nextInt();
            int a = i/100;
            int b = i%10;
            int c = (i/10)%10;
            i = b*100 + c*10 + a;
            System.out.println(i);
           loop = false;
        }
        while (loop);
    }
}
